﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeBehind="UserList.aspx.cs" Inherits="DomMgmtSystem.View.UserList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <table cellpadding="0" cellspacing="0" class="table table-bordered table-hover" width="100%">
        <tr>
            <td class="tableleft" style="width: 150px">
                摄区代号：
            </td>
            <td>
                <asp:TextBox ID="txtSQDH" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td class="tableleft" style="width: 150px">
                摄区名称：
            </td>
            <td>
                <asp:TextBox ID="txtCSQMC" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>--%>
        <tr>
            <td class="tableleft" style="width: 150px">
                是否已入库：
            </td>
            <td>
                <asp:DropDownList ID="ddlState" runat="server" Width="150px">
                    <asp:ListItem>全部</asp:ListItem>
                    <asp:ListItem Value="0">未入库</asp:ListItem>
                    <asp:ListItem Value="1">已入库</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="tableleft" style="width: 150px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" colspan="4">
                <asp:Button ID="btnSearch" runat="server" class="btn btn-primary" Text="查 询" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <table class="table table-bordered table-hover" id="list">
        <tr>
            <td class="head" style="display: none">
                序号ID
            </td>
            <th>
                摄区代号
            </th>
            <th>
                摄区名称
            </th>
            <th>
                硬盘是否能读
            </th>
            <th>
                完整性检查
            </th>
            <th>
                一致性检查
            </th>
            <th>
                总体结论
            </th>
            <th width="100px">
            </th>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <ItemTemplate>
                <tr>
                    <td style="display: none">
                        <%--序号ID--%><%#Eval("NID")%>
                    </td>
                    <td>
                        <%--摄区代号--%><%#Eval("SQDH")%>
                    </td>
                    <td>
                        <%--摄区名称--%><%#Eval("CSQMC")%>
                    </td>
                    <td>
                        <%--硬盘是否能读--%><%#Eval("YPSFKD").ToString() == "1" ? "不可读" : "可读"%>
                    </td>
                    <td>
                        <%--完整性检查--%><%#Eval("WZXJC").ToString() == "1" ? "不通过" : "通过"%>
                    </td>
                    <td>
                        <%--一致性检查--%><%#Eval("YZXJC").ToString() == "1" ? "不通过" : "通过"%>
                    </td>
                    <td>
                        <%--总体结论--%><%#Eval("ZTJL").ToString() == "1" ? "不通过" : "通过"%>
                    </td>
                    <td>
                        <%# "<a href='InCheck.aspx?NID=" + Eval("NID") + "&IsNew=false&view=true'>查看</a>&nbsp;" +(Eval("STATE").ToString()=="0"?"<a href='InCheck.aspx?NID=" + Eval("NID") + "&IsNew=false'>编辑</a>&nbsp;":"") %><asp:LinkButton
                            ID="lbDel" runat="server" CommandName="Del" CommandArgument='<%#Eval("NID") %>'
                            OnClientClick="javascript:if(confirm('确定要删除吗？'))return true;else  return false;"
                            Visible='<%# Eval("STATE").ToString()=="0" %>'>删除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <!--分页列表-->
    <div class="inline pull-right page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="569px" UrlPaging="True"
            TextBeforePageIndexBox="转到" TextAfterPageIndexBox="页" SubmitButtonText="Go" ShowPageIndexBox="Never"
            PrevPageText="上一页" PageSize="14" PageIndexBoxType="DropDownList" OnPageChanging="AspNetPager1_PageChanging"
            NumericButtonTextFormatString="[{0}]" NumericButtonCount="5" NextPageText="下一页"
            LastPageText="尾页" ForeColor="Black" FirstPageText="首页" CurrentPageButtonTextFormatString="[{0}]"
            ButtonImageAlign="Middle">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
